package org.xfy.ymcc.service;

import org.xfy.common.result.JsonResult;
import org.xfy.ymcc.domain.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import org.xfy.ymcc.dto.AddCourseDto;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xfy
 * @since 2023-12-01
 */
public interface ICourseService extends IService<Course> {


    void updateById(AddCourseDto addCourseDto, Long id, String username);

    void save(AddCourseDto addCourseDto, Long id, String username);
    JsonResult getEdit(Long id);

    JsonResult onLineCourse(List<Long> courseIds);

    JsonResult getDetailData(Long courseId);
}
